const db = require("./db")

const userObj = new db.Schema({
    userId:{type:String},
    userName: {type:String},
    passWord: {type:String},
    tel:{type:Number},
    code:{type:String},
    chineseId:{type:String},
    userImg:{type:String},
    lastTime:{type:Number},
    registerTime:{type:Number},
    birthday:{type:String},
    historyPassword:{type:Array},
    sex:{type:Number},          // 1男，0女
    loginState:{type:Number},   // 1已登录，0未登录
})

module.exports = db.model("user", userObj);
